# Contributor: Thomas Deutsch <thomas@tuxpeople.org>
# Maintainer: Thomas Deutsch <thomas@tuxpeople.org>
pkgname=dnsperf
pkgver=2.9.0
pkgrel=0
pkgdesc="Dnsperf and resperf gather accurate latency and throughput metrics for DNS"
url="https://www.dns-oarc.net/tools/dnsperf"
arch="all"
license="Apache-2.0"
makedepends="ldns-dev openssl-dev libxml2-dev libcap-dev json-c-dev krb5-dev
	protobuf-c-dev fstrm-dev ck-dev nghttp2-dev"
subpackages="$pkgname-doc"
source="https://www.dns-oarc.net/files/dnsperf/dnsperf-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="069dd046a8a50a7cf4cc22dc24a0152a46b9dedaad38a16abb56d6f21ac9fff06fb717dea0ccd73f26c218a875a6f2da6a06c5a44028267cdc6631fd218c68a6  dnsperf-2.9.0.tar.gz"
